﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace tactics.Utility
{
    public class Pair<T, U>
    {
        public Pair()
        {
        }

        public Pair(T first, U second)
        {
            this.First = first;
            this.Second = second;
        }

        public T First { get; set; }
        public U Second { get; set; }
    };

    public class Slope
    {
        public static float Difference(int x1, int y1, int x2, int y2, int gx, int gy)
        {
            int dx1 = x1 - gx;
            int dy1 = y1 - gy;
            int dx2 = x2 - gx;
            int dy2 = y2 - gy;
            float cross = Math.Abs(dx1 * dy2 - dx2 * dy1);
            return cross * 0.001f;
        }

    }
}
